package com.cc.alltype.wechat;

import java.io.Serializable;
/**
 * 微信小程序通过开发者服务器后台请求：https://api.weixin.qq.com/sns/jscode2session
 * 获取微信用户信息的响应结果模型
 * @author chanchaw
 * @create 2024-09-23 12:25
 */
public class MiniGetUserProfileRes implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer errcode;// 请求失败时微信服务器返回的报错代码
    private String errmsg;// 请求失败时微信服务器返回的报错信息描述
    private String session_key;// 请求成功时填充
    private String openid;// 请求成功时填充的微信用户openid
    private String unionid;// 开放平台ID

    public MiniGetUserProfileRes() {
    }

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getSession_key() {
        return session_key;
    }

    public void setSession_key(String session_key) {
        this.session_key = session_key;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    @Override
    public String toString() {
        return "MiniGetUserProfileRes{" +
                "errcode=" + errcode +
                ", errmsg='" + errmsg + '\'' +
                ", session_key='" + session_key + '\'' +
                ", openid='" + openid + '\'' +
                ", unionid='" + unionid + '\'' +
                '}';
    }
}
